package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author zero
 * @since 2022-12-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("consumer")
@ApiModel(value="MigrateConsumer对象", description="用户表")
public class MigrateConsumer extends BaseEntity {

    private static final long serialVersionUID=1L;

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;


    @ApiModelProperty(value = "VCC用户ID")
    @TableField("member_id")
    private String memberId;

    @ApiModelProperty(value = "客户模板 1-模板一，2-模板二")
    @TableField("template_type")
    private Integer templateType;

    @ApiModelProperty(value = "户号")
    @TableField("subs_code")
    private String subsCode;

    @ApiModelProperty(value = "户名")
    @TableField("cust_name")
    private String custName;

    @ApiModelProperty(value = "户址")
    @TableField("cust_address")
    private String custAddress;

    @ApiModelProperty(value = "户主手机号")
    @TableField("cust_phone")
    private String custPhone;

    @ApiModelProperty(value = "户主 用户类型")
    @TableField("cust_type")
    private String custType;

    @ApiModelProperty(value = "气户状态")
    @TableField("cust_status")
    private String custStatus;

    @ApiModelProperty(value = "名字")
    @TableField("Name")
    private String name;

    @ApiModelProperty(value = "地址(详细)")
    @TableField("Address")
    private String address;

    @ApiModelProperty(value = "行政区编码")
    @TableField("AdCode")
    private String adCode;

    @ApiModelProperty(value = "电话")
    @TableField("Phone")
    private String phone;

    @ApiModelProperty(value = "经度")
    @TableField("Position_Lon")
    private Double positionLon;

    @ApiModelProperty(value = "纬度")
    @TableField("Position_Lat")
    private Double positionLat;

    @ApiModelProperty(value = "部门id")
    @TableField("DepartmentId")
    private Integer departmentId;

    @TableField("Path")
    private String path;

    @ApiModelProperty(value = "更新时间")
    @TableField("Status_UpdateTime")
    private Date statusUpdatetime;

    @ApiModelProperty(value = "是否报警")
    @TableField("Status_AnyAlert")
    private Boolean statusAnyalert;

    @ApiModelProperty(value = "是否故障")
    @TableField("Status_AnyBroken")
    private Boolean statusAnybroken;

    @ApiModelProperty(value = "是否正常")
    @TableField("Status_AnyNormal")
    private Boolean statusAnynormal;

    @ApiModelProperty(value = "是否离线")
    @TableField("Status_AnyOffline")
    private Boolean statusAnyoffline;

    @ApiModelProperty(value = "所属行业 -字典名称Industry_type")
    @TableField("Industry_Type")
    private String industryType;

    @ApiModelProperty(value = "客户序号")
    @TableField("consumer_seq")
    private String consumerSeq;

    @ApiModelProperty(value = "设备总数")
    @TableField("equipment_total")
    private Integer equipmentTotal;

    @ApiModelProperty(value = "点位总数")
    @TableField("point_total")
    private Integer pointTotal;

    @ApiModelProperty(value = "备注 200字以内")
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updatedAt;


}
